package com.baikeyang.service.logs.impl;

import com.baikeyang.common.model.SystemLog;
import com.baikeyang.mapper.SystemLogMapper;
import com.baikeyang.service.base.impl.SuperServiceImpl;
import com.baikeyang.service.logs.ISystemLogService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "systemLogService")
public class SystemLogServiceImpl extends SuperServiceImpl<SystemLogMapper, SystemLog> implements ISystemLogService {

	@Autowired
	private SystemLogMapper systemLogMapper;

	@Override
	public IPage<SystemLog> getSystemLogsPage(Page<SystemLog> pageParam) {
		QueryWrapper<SystemLog> wr = new QueryWrapper<SystemLog>();
		return systemLogMapper.selectPage(pageParam, wr);
	}

}
